package com.xce.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xce.storage.entity.Storage;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lld
 * @since 2025-07-09
 */
@Mapper
public interface StorageMapper extends BaseMapper<Storage> {


    int deleteByPrimaryKey(Long id);

    int insert(Storage record);

    int insertSelective(Storage record);

    Storage selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Storage record);

    int updateByPrimaryKey(Storage record);

    void deduct(String commodityCode, Integer count);
}
